package dao;

import entity.FilmInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FilmInfoDao {
    public List<FilmInfo> getFilmInfo();

    public List<FilmInfo> getFilmInfoByName(String filmname);

    public List<FilmInfo> getFilmInfoByCondition(@Param("filmname") String filmname, @Param("money") Integer money);

    public List<FilmInfo> getFilmInfoByCondition2(Map<String,Object> map);

    public List<FilmInfo> getFilmInfoByCondition3(FilmInfo info);

    public List<FilmInfo> getFilmInfoByCondition4(@Param("info") FilmInfo info);

    public List<FilmInfo> getFilmInfoByCondition5(@Param("choice") String choice);

    public List<FilmInfo> getFilmInfoByCondition6(Integer[] typeid);

    public List<FilmInfo> getFilmInfoByCondition7(List<Integer> typeid);

    public List<FilmInfo> getFilmInfoAndType();

    //纯分页
    public int getFilmCount();
    public List<FilmInfo> getFilmInfoAndTypeByPage(@Param("pageIndex") Integer pageIndex,@Param("pageSize")Integer pageSize);

    //带条件分页
    public int getFilmCount2(@Param("info")FilmInfo info);
    public List<FilmInfo> getFilmInfoAndTypeByPage2(@Param("pageIndex") Integer pageIndex,@Param("pageSize")Integer pageSize,@Param("info")FilmInfo info);

    //删除
    /*public int delFilminfo(@Param("filmid") Integer filmid);*/


}
